package com.ooqiu.gaming.components.net_interceptor;

import com.blankj.utilcode.util.DeviceUtils;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author Eenie
 * @date 2017/11/29
 */

public class ReqInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request().newBuilder()
                .addHeader("Device_ID",   DeviceUtils.getAndroidID()).build();
        return chain.proceed(request);
    }
}
